import 'package:flutter_app/generated/json/base/json_convert_content.dart';
import 'package:flutter_app/bean/center_data_entity.dart';

CenterDataEntity $CenterDataEntityFromJson(Map<String, dynamic> json) {
	final CenterDataEntity centerDataEntity = CenterDataEntity();
	final String? year = jsonConvert.convert<String>(json['year']);
	if (year != null) {
		centerDataEntity.year = year;
	}
	final String? gradeCount = jsonConvert.convert<String>(json['gradeCount']);
	if (gradeCount != null) {
		centerDataEntity.gradeCount = gradeCount;
	}
	final int? gradeRate = jsonConvert.convert<int>(json['gradeRate']);
	if (gradeRate != null) {
		centerDataEntity.gradeRate = gradeRate;
	}
	final String? gradeTotal = jsonConvert.convert<String>(json['gradeTotal']);
	if (gradeTotal != null) {
		centerDataEntity.gradeTotal = gradeTotal;
	}
	final String? signCount = jsonConvert.convert<String>(json['signCount']);
	if (signCount != null) {
		centerDataEntity.signCount = signCount;
	}
	final int? signRate = jsonConvert.convert<int>(json['signRate']);
	if (signRate != null) {
		centerDataEntity.signRate = signRate;
	}
	final String? signTotal = jsonConvert.convert<String>(json['signTotal']);
	if (signTotal != null) {
		centerDataEntity.signTotal = signTotal;
	}
	final String? score = jsonConvert.convert<String>(json['score']);
	if (score != null) {
		centerDataEntity.score = score;
	}
	return centerDataEntity;
}

Map<String, dynamic> $CenterDataEntityToJson(CenterDataEntity entity) {
	final Map<String, dynamic> data = <String, dynamic>{};
	data['year'] = entity.year;
	data['gradeCount'] = entity.gradeCount;
	data['gradeRate'] = entity.gradeRate;
	data['gradeTotal'] = entity.gradeTotal;
	data['signCount'] = entity.signCount;
	data['signRate'] = entity.signRate;
	data['signTotal'] = entity.signTotal;
	data['score'] = entity.score;
	return data;
}